package com.qin.properties.controller;

import cn.hutool.core.lang.Dict;
import com.qin.properties.property.ApplicationProperty;
import com.qin.properties.property.DeveloperProperty;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Leisure
 * create 2022 2022/9/28 17:47
 **/

/**
 * 测试Controller
 */
@RestController
public class PropertyController {
    private final ApplicationProperty applicationProperty;
    private final DeveloperProperty developerProperty;

    public PropertyController(ApplicationProperty applicationProperty, DeveloperProperty developerProperty) {
        this.applicationProperty = applicationProperty;
        this.developerProperty = developerProperty;
    }
    
    @GetMapping("/property")
    public Dict index(){
        return Dict.create().set("applicationProperty", applicationProperty).set("developerProperty", developerProperty);
    }
}
